package com.feng.service.impl;

import com.feng.service.IPrototype;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Lookup;
import org.springframework.stereotype.Component;

/**
 * Description:
 * User: zhangyinglong
 * Date: 2021-04-22
 * Time: 22:00
 */
@Slf4j
@Component
public class TestProtoType {
//    @Autowired
//    private IPrototype prototype;

    @Lookup
    public IPrototype getProtoType(){
        return null;
    }


    public void test(){
        log.info("TestProtoType is :{}",this);
        getProtoType().test();
//        prototype.test();
    }
}
